<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>添加商品类型</title>
	<hdjs/>
	<js file="__CONTROL_TPL__/Js/field.js">
</head>
<body>
	<div class="menu_list">
		<ul>
			<li><a href="{|U:'index'}">栏目列表</a></li>
			<li><a href="{|U:'add'}"  class="action">添加栏目</a></li>
			<li><a href="{|U:'updateCache'}">更新栏目缓存</a></li>
		</ul>
	</div>

	<form action="" method="post" class=" hd-form">
		<input type="hidden" name="pid" value="{$hd:get.pid|default:0}">
		<div class="title-header">添加栏目</div>
		<table class="table1 hd-form">
			<tr>
				<th class="w100">栏目名</th>
				<td><input type="text" name="cname"></td>
			</tr>

			<tr>
				<th class="w100">商品类型</th>
				<td>
					<select name="gtid" id="">
						<list from = "$goodstype" name="gt">
							<option value="{$gt.gt_id}">{$gt.gtname}</option>
						</list>
					</select>
				</td>
			</tr>

			<tr>
				<th class="w100">关键字</th>
				<td><input type="text" name="keywords" class="w150"></td>
			</tr>
			<tr>
				<th class="w100">描述</th>
				<td><input type="textarea" name="description" class="w400 h100"></td>
			</tr>
			<tr>
				<th class="w100">栏目类型</th>
				<td><label><input type="radio" name="cattype" value="0" checked=""> 普通栏目</label>
					<label><input type="radio" name="cattype" value="1" > 封面</label>
				</td>
			</tr>
			<tr>
				<th class="w100">单位</th>
				<td><input type="text" name="unit" class="w150" value="个"></td>
			</tr>	
			<tr>
				<th class="w100">价格区间</th>
				<td><input type="text" name="pricerange" class="w150" value="3"></td>
			</tr>		
			
		</table>
		<div id="showField"></div>
		<input type="submit" value="添加" name="submit" class="hd-success position-bottom" style="margin-left:30px;">
	</form>
	<script>
		validate:{
			$(function(){
				$('form').validate({
					cname:{
						rule:{
							required:true
						},
						error:{
							required:'栏目名不能为空'
						}
					}
					
				})
			})
		}
	</script>
</body>
</html>